namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("V_RPT_RCM_DETAIL")]
    public partial class V_RPT_RCM_DETAIL
    {
        [Key]
        [Column(Order = 0)]
        public DateTime? PLAN_DATE { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(40)]
        public string CAR_ID { get; set; }

        [StringLength(50)]
        public string LPR { get; set; }

        [Key]
        [Column(Order = 2)]

        [StringLength(40)]
        public string DETAIL_ID { get; set; }

        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(50)]
        public string MINE_NAME { get; set; }

        [StringLength(20)]
        public string MINE_CODE { get; set; }

        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(50)]
        public string MATERIEL_NAME { get; set; }

        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(50)]
        public string SUPPLIER_NAME { get; set; }

        [StringLength(40)]
        public string TRANSPORT_ID { get; set; }

        [StringLength(50)]
        public string TRANSPORT_NAME { get; set; }

        public decimal? BILL_WEIGHT { get; set; }

        public decimal? GROSS { get; set; }

        public decimal TARE { get; set; }

        public decimal? NET { get; set; }
        
        public decimal COEFFECENT { get; set; }
        
        public decimal CUTBILL { get; set; }
        
        public decimal BALANCE { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime? STATS_TIME { get; set; }

        [StringLength(10)]
        public string STATS_DATE { get; set; }

        public decimal? STATS_YEAR { get; set; }

        public decimal? STATS_MONTH { get; set; }

        public decimal? STATS_DAY { get; set; }
    }
}
